package com.rightsidetech.activity.dto.request;

import com.rightsidetech.commom.base.TimeQueryRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import java.io.Serializable;

@Data
public class ActEntityCouponReq extends TimeQueryRequest implements Serializable {
    @ApiModelProperty("活动名称")
    private String activityName;
    @ApiModelProperty("优惠券编号")
    private String code;
    @ApiModelProperty("优惠券类型(0折扣 1满减)")
    private String couponType;
    @ApiModelProperty("状态 0待领取 1已领取 2已使用 6已作废")
    private String status;
    @ApiModelProperty(value = "时间（0 有效期 1生成时间）")
    private String timeType;
    @ApiModelProperty(value = "优惠券发放对象（0 用户 1 门店）")
    @Range(min = 0,max = 1,message = "发放对象不正确")
    private Byte target;
}
